package top.leoseven.adminproject.modle;

import android.app.Application;
import android.content.Intent;

import top.leoseven.adminproject.view.services.SocketService;

/**
 * Created by Administrator on 2018/2/8.
 */

public class AppInfo extends Application {
    public static final String SERVER="http://test.leoseven.top/stumanager";
//public static final String SERVER="http://192.168.1.3:8080";
//    public static final String SERVER="http://192.168.2.104";
    private static String mToken;
    private static int userid;

    public static void setUserid(int userid) {
        AppInfo.userid = userid;
    }

    public static int getUserid() {
        return userid;
    }

    public static void setToken(String token){
        mToken=token;
    }
    public static String getToken(){
        return mToken;
    }
    private static String mUsername;
    public static void setUsername(String username){
        mUsername=username;
    }
    public static String getUsername(){
        return mUsername;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        startService(new Intent(this, SocketService.class));
    }
}
